<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>制作成员管理</title>
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<meta content="yes" name="apple-mobile-web-app-capable">
	<meta content="yes" name="apple-touch-fullscreen">
	<meta content="telephone=no,email=no" name="format-detection">
	<script type="text/javascript" src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/js/jisuan.js"></script>
	<link rel="stylesheet" type="text/css" href="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/css/photoNewBook/invitefellow.css"/>
	</head>
	<body>
		<div class="mian">
			<div class="head_1">
				<a>相册制作邀请成员</a>
				<span>(</span>
				<!--好友人数-->
				<span></span>
				<span>)</span>					
			</div>
			<div class="body">
				<foreach name="people" item="vp"  key="kp">
				<div class="body_div body_div_{$vp['pbId']}">
					<div class="body_div1">
						<!--放头像-->
						<div class="name_img">
							<img src="{$vp['head_pic']}"/>
						</div>
					</div>
					<if condition="$vp['master'] eq 0">
						<img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/photoNewBook/schy.png" alt="" class="del_img" onclick="Delete({$vp['pbId']})"/>
					</if>

					<!--微信名-->
					<div class="name">{$vp['nickname']}</div>
				</div>
				</foreach>
				<div class="body_del">
					<div class="body_div1">
						<div class="name_img del">
							<div></div>
						</div>						
					</div>
					<a class="name">删除好友</a>
				</div>				
			</div>			
			<a href="{:U('WebApp/PhotoBooks/invitefellow')}" class="foot">
				完成编辑
			</a>
		</div>
	</body>
</html>
<script type="text/javascript" src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/js/photoNewBook/jquery-1.10.2.min.js"></script>
<script src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/js/ajax.js"></script>
<script type="text/javascript">
$('.body_del').click(function(){
	$('.del_img').css('display','inline');
})
//删除已邀请的好友
function Delete(pbId){
    $.ajax({
        type: "get",//数据发送的方式（post 或者 get）
        url: " {:U('PhotoBooks/deleteFriend')}",//要发送的后台地址
        data:{'pbId':pbId},//要发送的数据（参数）格式为{'val1':"1","val2":"2"}
        dataType: "json",//后台处理后返回的数据格式
        success:function(data){
            if(data.status==1){

            }
            $('.body_div_'+pbId).remove();
            $('.del_img').css('display','none');
        }
    })

}


</script>
